<!DOCTYPE html>
<html lang="en">
<head>
	
	<!-- start: Meta -->
	<meta charset="utf-8">
	<title>
		<?php 
			if(!isset($title_layout)){
				echo 'Admin control panel';
			}else {
				echo $title_layout;
			}
		?>
	</title>
	
	<!-- end: Meta -->
	
	<!-- start: Mobile Specific -->
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- end: Mobile Specific -->
	
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css(array('bootstrap.min', 'bootstrap-responsive.min', 'style', 'style-responsive' ));
		

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
	
	<!--[if lt IE 7 ]>
	<?php echo $this->Html->css(array('style-ie')); ?>
	
	<![endif]-->
	<!--[if IE 8 ]>
	<link id="ie-style" href="css/style-ie.css" rel="stylesheet">
	<![endif]-->
	<!--[if IE 9 ]>
	<![endif]-->
	
	<!-- end: CSS -->
	

	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

		
		
		
</head>

<body>
	<div id="overlay">
		<ul>
		  <li class="li1"></li>
		  <li class="li2"></li>
		  <li class="li3"></li>
		  <li class="li4"></li>
		  <li class="li5"></li>
		  <li class="li6"></li>
		</ul>
	</div>	
	<!-- start: Header -->
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
			
				<?php echo $this->Html->link('<span class="hidden-phone">Admin control panel</span>', DOMAIN_ROOT . '/admin', array('escape' => false, 'class' => 'brand')); ?>				
				<!-- start: Header Menu -->
				<div class="nav-no-collapse header-nav">
					<ul class="nav pull-right">
						<!--li class="dropdown hidden-phone">
							<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
								<i class="icon-warning-sign icon-white"></i> <span class="label label-important hidden-phone">2</span> <span class="label label-success hidden-phone">11</span>
							</a>
							<!--ul class="dropdown-menu notifications">
								<li>
									<span class="dropdown-menu-title">You have 11 notifications</span>
								</li>	
                            	<li>
                                    <a href="#">
										+ <i class="icon-user"></i> <span class="message">New user registration</span> <span class="time">1 min</span> 
                                    </a>
                                </li>
								<li>
                                    <a href="#">
										+ <i class="icon-comment"></i> <span class="message">New comment</span> <span class="time">7 min</span> 
                                    </a>
                                </li>
								<li>
                                    <a href="#">
										+ <i class="icon-comment"></i> <span class="message">New comment</span> <span class="time">8 min</span> 
                                    </a>
                                </li>
								<li>
                                    <a href="#">
										+ <i class="icon-comment"></i> <span class="message">New comment</span> <span class="time">16 min</span> 
                                    </a>
                                </li>
								<li>
                                    <a href="#">
										+ <i class="icon-user"></i> <span class="message">New user registration</span> <span class="time">36 min</span> 
                                    </a>
                                </li>
								<li>
                                    <a href="#">
										+ <i class="icon-shopping-cart"></i> <span class="message">2 items sold</span> <span class="time">1 hour</span> 
                                    </a>
                                </li>
								<li class="warning">
                                    <a href="#">
										- <i class="icon-user icon-red"></i> <span class="message">User deleted account</span> <span class="time">2 hour</span> 
                                    </a>
                                </li>
								<li class="warning">
                                    <a href="#">
										- <i class="icon-shopping-cart icon-red"></i> <span class="message">Transaction was canceled</span> <span class="time">6 hour</span> 
                                    </a>
                                </li>
								<li>
                                    <a href="#">
										+ <i class="icon-comment"></i> <span class="message">New comment</span> <span class="time">yesterday</span> 
                                    </a>
                                </li>
								<li>
                                    <a href="#">
										+ <i class="icon-user"></i> <span class="message">New user registration</span> <span class="time">yesterday</span> 
                                    </a>
                                </li>
                                <li>
                            		<a class="dropdown-menu-sub-footer">View all notifications</a>
								</li>	
							</ul-->
						<!--/li-->
						<!-- start: Notifications Dropdown -->
						<!--li class="dropdown hidden-phone"-->
							<!--a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
								<i class="icon-tasks icon-white"></i> <span class="label label-warning hidden-phone">17</span>
							</a>
							<ul class="dropdown-menu tasks">
								<li>
									<span class="dropdown-menu-title">You have 17 tasks in progress</span>
                            	</li>
								<li>
                                    <a href="#">
										<span class="header">
											<span class="title">iOS Development</span>
											<span class="percent"></span>
										</span>
                                        <div class="taskProgress progressSlim progressYellow">80</div> 
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
										<span class="header">
											<span class="title">Android Development</span>
											<span class="percent"></span>
										</span>
                                        <div class="taskProgress progressSlim progressYellow">47</div> 
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
										<span class="header">
											<span class="title">Django Project For Google</span>
											<span class="percent"></span>
										</span>
                                        <div class="taskProgress progressSlim progressYellow">32</div> 
                                    </a>
                                </li>
								<li>
                                    <a href="#">
										<span class="header">
											<span class="title">SEO for new sites</span>
											<span class="percent"></span>
										</span>
                                        <div class="taskProgress progressSlim progressYellow">63</div> 
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
										<span class="header">
											<span class="title">New blog posts</span>
											<span class="percent"></span>
										</span>
                                        <div class="taskProgress progressSlim progressYellow">80</div> 
                                    </a>
                                </li>
								<li>
                            		<a class="dropdown-menu-sub-footer">View all tasks</a>
								</li>	
							</ul-->
						<!--/li-->
						<!-- end: Notifications Dropdown -->
						<!-- start: Message Dropdown -->
						<!--li class="dropdown hidden-phone">
							<!--a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
								<i class="icon-envelope icon-white"></i> <span class="label label-success hidden-phone">9</span>
							</a>
							<ul class="dropdown-menu messages">
								<li>
									<span class="dropdown-menu-title">You have 9 messages</span>
								</li>	
                            	<li>
                                    <a href="#">
										<span class="avatar"><img src="img/avatar.jpg" alt="Avatar"></span>
										<span class="header">
											<span class="from">
										    	Łukasz Holeczek
										     </span>
											<span class="time">
										    	6 min
										    </span>
										</span>
                                        <span class="message">
                                            Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                        </span>  
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
										<span class="avatar"><img src="img/avatar2.jpg" alt="Avatar"></span>
										<span class="header">
											<span class="from">
										    	Megan Abott
										     </span>
											<span class="time">
										    	56 min
										    </span>
										</span>
                                        <span class="message">
                                            Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                        </span>  
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
										<span class="avatar"><img src="img/avatar3.jpg" alt="Avatar"></span>
										<span class="header">
											<span class="from">
										    	Kate Ross
										     </span>
											<span class="time">
										    	3 hours
										    </span>
										</span>
                                        <span class="message">
                                            Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                        </span>  
                                    </a>
                                </li>
								<li>
                                    <a href="#">
										<span class="avatar"><img src="img/avatar4.jpg" alt="Avatar"></span>
										<span class="header">
											<span class="from">
										    	Julie Blank
										     </span>
											<span class="time">
										    	yesterday
										    </span>
										</span>
                                        <span class="message">
                                            Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                        </span>  
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
										<span class="avatar"><img src="img/avatar5.jpg" alt="Avatar"></span>
										<span class="header">
											<span class="from">
										    	Jane Sanders
										     </span>
											<span class="time">
										    	Jul 25, 2012
										    </span>
										</span>
                                        <span class="message">
                                            Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                        </span>  
                                    </a>
                                </li>
								<li>
                            		<a class="dropdown-menu-sub-footer">View all messages</a>
								</li>	
							</ul>
						</li-->
						<!-- end: Message Dropdown -->
						
						<!-- start: User Dropdown -->
						<li class="dropdown">
							<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
								<i class="icon-user icon-white"></i>
								<span class="caret"></span>
							</a>
							<ul class="dropdown-menu">
								<li><a href="#"><i class="icon-user"></i> Profile</a></li>
								<li><?php echo $this->Html->link('<i class="icon-off"></i> Thoát', '/logout', array('escape' => false)); ?></li>
							</ul>
						</li>
						<!-- end: User Dropdown -->
					</ul>
				</div>
				<!-- end: Header Menu -->
				
			</div>
		</div>
	</div>
	<!-- start: Header -->
	
		<div class="container-fluid">
		<div class="row-fluid">
				
			<!-- start: Main Menu -->
			<div class="span2 main-menu-span">
				<div class="nav-collapse sidebar-nav">
					<ul class="nav nav-tabs nav-stacked main-menu">
						
						<li>
							<?php echo $this->Html->link('<i class="icon-home icon-white"></i><span class="hidden-tablet"> Dashboard</span>', DOMAIN_ROOT . '/admin', array('escape' => false)); ?>
						</li>
					
						<li>
							<a class="dropmenu" href="#"><i class="fa-icon-folder-close-alt"></i><span class="hidden-tablet"> Danh mục ứng dụng</span></a>
							<ul>
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thông tin chung</span>', array('controller' => 'categories', 'action' => 'index', 'admin' => true), array('escape' => false)); ?>
								</li>
								
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thêm danh mục mới</span>', array('controller' => 'categories', 'action' => 'add', 'admin' => true), array('escape' => false)); ?>
								</li>
								
							</ul>	
						</li>
						
						
						<li>
							<a class="dropmenu" href="#"><i class="fa-icon-folder-close-alt"></i><span class="hidden-tablet"> Thể loại game</span></a>
							<ul>
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thông tin chung</span>', array('controller' => 'genres', 'action' => 'index', 'admin' => true), array('escape' => false)); ?>
								</li>
								
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thêm thể loại mới</span>', array('controller' => 'genres', 'action' => 'add', 'admin' => true), array('escape' => false)); ?>
								</li>
								
							</ul>	
						</li>
						
						
						<li>
							<a class="dropmenu" href="#"><i class="fa-icon-folder-close-alt"></i><span class="hidden-tablet"> Nhà phát hành</span></a>
							<ul>
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thông tin chung</span>', array('controller' => 'publishers', 'action' => 'index', 'admin' => true), array('escape' => false)); ?>
								</li>
								
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thêm nhà phát hành</span>', array('controller' => 'publishers', 'action' => 'add', 'admin' => true), array('escape' => false)); ?>
								</li>
								
							</ul>	
						</li>
						
						<li>
							<a class="dropmenu" href="#"><i class="fa-icon-folder-close-alt"></i><span class="hidden-tablet"> Game</span></a>
							<ul>
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thông tin chung</span>', array('controller' => 'games', 'action' => 'index', 'admin' => true), array('escape' => false)); ?>
								</li>
								
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thêm game mới</span>', array('controller' => 'games', 'action' => 'add', 'admin' => true), array('escape' => false)); ?>
								</li>
								
							</ul>	
						</li>
						
						
						<li>
							<a class="dropmenu" href="#"><i class="fa-icon-folder-close-alt"></i><span class="hidden-tablet"> Hệ điều hành</span></a>
							<ul>
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thông tin chung</span>', array('controller' => 'systems', 'action' => 'index', 'admin' => true), array('escape' => false)); ?>
								</li>
								
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thêm HĐH mới</span>', array('controller' => 'systems', 'action' => 'add', 'admin' => true), array('escape' => false)); ?>
								</li>
								
							</ul>	
						</li>
						
						
						<li>
							<a class="dropmenu" href="#"><i class="fa-icon-folder-close-alt"></i><span class="hidden-tablet"> Hình ảnh game</span></a>
							<ul>
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thông tin chung</span>', array('controller' => 'images', 'action' => 'index', 'admin' => true), array('escape' => false)); ?>
								</li>
								
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thêm hình ảnh</span>', array('controller' => 'images', 'action' => 'add', 'admin' => true), array('escape' => false)); ?>
								</li>
								
							</ul>	
						</li>
						<li><?php echo $this->Html->link('<i class="icon-star icon-white"></i><span class="hidden-tablet"> Đánh giá game</span>', array('controller' => 'rates', 'action' => 'index', 'admin' => true), array('escape' => false)); ?></li>
						
						<li><?php echo $this->Html->link('<i class="icon-star icon-white"></i><span class="hidden-tablet"> Tags</span>', array('controller' => 'tags', 'action' => 'index', 'admin' => true), array('escape' => false)); ?></li>
						
						
						<li>
							<a class="dropmenu" href="#"><i class="fa-icon-folder-close-alt"></i><span class="hidden-tablet"> Nhóm thành viên</span></a>
							<ul>
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thông tin chung</span>', array('controller' => 'groups', 'action' => 'index', 'admin' => true), array('escape' => false)); ?>
								</li>
								
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thêm nhóm mới</span>', array('controller' => 'groups', 'action' => 'add', 'admin' => true), array('escape' => false)); ?>
								</li>
								
							</ul>	
						</li>
						
						<li>
							<a class="dropmenu" href="#"><i class="fa-icon-folder-close-alt"></i><span class="hidden-tablet"> Thành viên</span></a>
							<ul>
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thông tin chung</span>', array('controller' => 'users', 'action' => 'index', 'admin' => true), array('escape' => false)); ?>
								</li>
								
								<li>
									<?php echo $this->Html->link('<i class="fa-icon-file-alt"></i><span class="hidden-tablet"> Thêm thành viên mới</span>', array('controller' => 'users', 'action' => 'add', 'admin' => true), array('escape' => false)); ?>
								</li>
								
							</ul>	
						</li>
					</ul>
				</div><!--/.well -->
			</div><!--/span-->
			<!-- end: Main Menu -->
			
			
			
			<div id="content" class="span10">
			<!-- start: Content -->
				<?php echo $this->Session->flash(); ?>

				<?php echo $this->fetch('content'); ?>
		
			
			<!-- end: Content -->
			</div><!--/#content.span10-->
				</div><!--/fluid-row-->
				
		<div class="modal hide fade" id="myModal">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">×</button>
				<h3>Settings</h3>
			</div>
			<div class="modal-body">
				<p>Here settings can be configured...</p>
			</div>
			<div class="modal-footer">
				<a href="#" class="btn" data-dismiss="modal">Close</a>
				<a href="#" class="btn btn-primary">Save changes</a>
			</div>
		</div>
		
		<div class="clearfix"></div>
		
		<footer>
			<p>
				<span style="text-align:left;float:left">&copy; <a href="http://clabs.co" target="_blank">creativelabs</a> 2013</span>
				<span style="text-align:right;float:right">powered by: <a href="#">perfectum dashboard</a></span>
			</p>

		</footer>
				
	</div><!--/.fluid-container-->

	<!-- start: JavaScript-->
	<?php echo $this->Html->script(array('jquery-1.9.1.min', 'jquery-migrate-1.0.0.min', 'jquery-ui-1.10.0.custom.min', 'jquery.ui.touch-punch', 'bootstrap.min', 'jquery.cookie', 'fullcalendar.min', 'jquery.dataTables.min', 'excanvas', 'jquery.flot.min', 'jquery.flot.pie.min', 'jquery.flot.stack', 'jquery.flot.resize.min', 'jquery.chosen.min', 'query.uniform.min', 'jquery.cleditor.min', 'jquery.noty', 'jquery.elfinder.min', 'jquery.raty.min', 'jquery.iphone.toggle', 'jquery.uploadify-3.1.min', 'jquery.gritter.min', 'jquery.imagesloaded',  'jquery.knob', 'jquery.sparkline.min', 'custom', )); ?>
		<!-- end: JavaScript-->
	
</body>
</html>
